home *** CD-ROM | disk | FTP | other *** search
- package ms.applet;
-
- import java.applet.AppletContext;
- import java.awt.Component;
- import java.net.MalformedURLException;
- import java.net.URL;
- import java.util.Hashtable;
-
- class AppletViewerPanel extends AppletPanel {
- URL codebaseURL;
- URL docbaseURL;
- Hashtable atts;
-
- AppletViewerPanel(AppletViewer var1, Hashtable var2) {
- super(var1);
- this.atts = var2;
-
- try {
- String var3 = this.getParameter("documentbase");
- String var4 = this.getParameter("codebase");
- this.codebaseURL = new URL(var4);
- this.docbaseURL = new URL(var3);
- } catch (MalformedURLException var5) {
- ((Throwable)var5).printStackTrace();
- }
- }
-
- public String getParameter(String var1) {
- return (String)this.atts.get(var1.toLowerCase());
- }
-
- public URL getCodeBase() {
- return this.codebaseURL;
- }
-
- public URL getDocumentBase() {
- return this.docbaseURL;
- }
-
- public AppletContext getAppletContext() {
- return (AppletContext)((Component)this).getParent();
- }
- }
-